
<form class="form-horizontal" ng-submit="submit()" style="width:80%;margin:0 auto;">
	<div style="width:40%;margin:0 auto;display:inline-block;margin-right:10%;">
		<div class="title">基本信息</div>
		<!-- 选择年级 -->
		<div class="student_add_info">
			<label>年级：</label>
		    <select class="select_box" ng-model = "selectGrade" ng-options = "item.id as item.name for item in selectGrades">
			</select>
		</div>
		<!-- 选择班级 -->
		<div class="student_add_info">
			<label>班级：</label>
		    <div class="input_box">
				<input type="text" ng-model="class.class" placeholder="">     
		    </div>
		</div>

		<!-- 选择班主任 -->
		<div class="student_add_info">
			<label>班主任：</label>
		    <select class="select_box" ng-model = "selectTeacher" ng-options = "item.id as item.name for item in selectTeacheres">
			</select>
		</div>

		<!-- 填写电话 -->
		<div class="student_add_info">
			<label>电话：</label>
		    <div class="input_box">
				<input type="text" ng-model="class.tel" placeholder="">     
		    </div>
		</div>
		<!-- 填写备注 -->
		<div class="student_add_info">
			<label>备注：</label>
		    <div class="input_box">
				<input type="textarea" ng-model="class.remark" placeholder="">     
		    </div>
		</div>
	</div>

	<div style="width:40%;margin:0 auto;display:inline-block;">
		<div class="title">任课老师</div>
		<div style="position:relative;display:block" id="teacher">
			<div  style="width:45%;position:absolute;left:0;">
				<!-- 选择科目 -->
				<div class="student_add_info" ng-repeat = "subject in subjects" style="line-height:35px;">
					{{$index+1}}
				    <select  class="select_box" ng-model="subject.name" ng-options="item.id as item.name for item in selectSubjects" ng-change = "update()"> 
					</select>
				</div>
			</div>
			
			<!-- 选择对应老师 -->
			<div style="width:45%;position:absolute;right:0;" id = "selectTeacher">
				<div  class="student_add_info">
					<select  class="select_box" ng-model="selectTeacher" ng-options="item.id as item.name for item in selectTeacheres">
					</select>
				</div>
			</div>
			
		</div>
		<button style="width:20%;float:right;height:35px;background:#fff;color:#329da3;" 
		ng-click="add()"  class="btn pull-right" >
				添&nbsp加
		</button>
	</div>

	<div style="margin:20px 0;width:50%;float:right;">
		<a href="#/classes" style="width:40%;margin:0 auto;display:inline-block;">
			<button style="width:100%;" class="btn btn-large btn-primary">取消</button>
		</a>
		<a href="" style="width:40%;margin:0 auto;display:inline-block;">
			<button style="width:100%;" class="btn btn-large btn-primary" ng-click="submit(student)">提交</button>
		</a>
	</div>
</form>

